package com.kgc.kmall.kmallcloudmanagerweb.service;

import com.kgc.kmall.bean.PmsProductInfo;
import com.kgc.kmall.bean.PmsProductSaleAttr;
import com.kgc.kmall.kmallcloudmanagerweb.hystix.SpuFeignHystix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "KMALLCLOUD-MANAGER-SERVICE",fallback = SpuFeignHystix.class)
public interface SpuFeignService {
    @RequestMapping("/spuList/{catalog3Id}")
    public List<PmsProductInfo> spuList(@PathVariable(value = "catalog3Id") Long catalog3Id);

    //根据id查询spu
    @RequestMapping("/spuSaleAttrList/{spuId}")
    public List<PmsProductSaleAttr> spuSaleAttrList(@PathVariable(value = "spuId") Long spuId);
}
